package com.tanhua.server.exception;

import com.tanhua.model.vo.ErrorResult;
import lombok.Data;
import org.apache.dubbo.config.annotation.DubboReference;

/**
 * 自定义异常类
 */
@Data
public class BusinessException extends RuntimeException {

    private ErrorResult result;

    public BusinessException(ErrorResult result){
        super(result.getErrMessage());
        this.result=result;
    }
}
